<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>栏目编辑</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type='text/javascript' src='http://localhost/hdphp/plugin/jquery-1.8.2.min.js'></script>
        <script type="text/javascript" src="http://localhost/hb/easycms/admin/tpl/public/js/category.js"></script>
        <link type="text/css" rel="stylesheet" href="http://localhost/hb/easycms/admin/tpl/public/css/category.css"/>
    </head>
    <body>
        <form action="<?php echo U('save');?>" method="post">
        	<input type="hidden" name="pid" value="<?php echo $field['pid'];?>"/>
            <input type="hidden" name="cid" value="<?php echo $_GET['cid'];?>"/>
            <div id="tabs">
                <ul class='tabs_top'>
                    <li class='dif'><a href="javascript:;">基本设置</a></li>
                    <li><a href="javascript:;">模板设置</a></li>
                    <li><a href="javascript:;">静态规则</a></li>
                </ul>
                <div id="tabs_list">
                    <div class='tabs_list1 show'>
                        <table>
                            <tr>
                                <th width='10%'>栏目名称</th>
                                <td width='88%'>
                                    <input type="text" class="input1" name="catname" value='<?php echo $field['catname'];?>'/> <span class="desc">栏目名称，必须使用中文</span>
                                </td>
                            </tr>
                            <tr>
                            <th>是否允许发表文章</th>
                            <td>
                                <input type="radio"  name="issend" value="1"<?php if($field['issend']==1){?>checked="checked"<?php }?>/> 是
                                <input type="radio"  name="issend" value="0" <?php if($field['issend']==0){?>checked="checked"<?php }?>/> 否
                            </td>
                        </tr>
                            <tr>
                                <th>静态目录</th>
                                <td>
                                    <input type="text" class="input1" name="catdir" value='<?php echo $field['catdir'];?>'/><span class="desc">静态目录</span>
                                </td>
                            </tr>
                            <tr>
                                <th>关键字</th>
                                <td>
                                    <input type="text" class="input1" name="keywords" value='<?php echo $field['keywords'];?>'/>
                                    <span class="desc">关键字</span>
                                </td>
                            </tr>
                            <tr>
                                <th>栏目描述</th>
                                <td>
                                    <textarea name="description" class="textarea1"><?php echo $field['description'];?></textarea>
                                    <span class="desc">栏目描述</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class='tabs_list1'>
                        <table>
                            <tr>
                                <th width='10%'>栏目模板</th>
                                <td width='88%'>
                                    <input type="text" name="cattpl" class="input1" value="<?php echo $field['cattpl'];?>"/><button class="bt2">选择模板</button><span class="desc"></span>
                                </td>
                            </tr>
                            <tr>
                                <th>内容页模板</th>
                                <td>
                                    <input type="text" name="arctpl" class="input1" value="<?php echo $field['arctpl'];?>"/><button class="bt2">选择模板</button><span class="desc"></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class='tabs_list1'>
                        <table>
                            <tr>
                                <th width='10%'>栏目静态</th>
                                <td width='88%'>
                                    <input type="text" name="cathtml" class="input2" value="<?php echo $field['cathtml'];?>"/><span class="desc">{htmlpath}静态根目录 {catdir}列表目录 {cid}栏目ID</span>
                                </td>
                            </tr>
                            <tr>
                                <th>内容页静态</th>
                                <td>
                                    <input type="text" name="archtml" class="input2" value="<?php echo $field['archtml'];?>"/><span class="desc">{htmlpath}根目录 {catdir}列表目录  {y}年 {m}月 {d}日 {aid}文章ID</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class='add'>
                    <input type="submit" class="bt1" id='add' value="修改栏目"/>
                </div>
            </div>
        </form>
    </body>
</html>